cat > /etc/systemd/system/rclone.plus.service <<EOF
[Unit]
Description=Rclone
AssertPathIsDirectory=LocalFolder
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount plus-agwa: /mnt/gd/plus \
 --umask 0000 \
 --default-permissions \
 --allow-non-empty \
 --allow-other \
 --buffer-size 32M \
 --vfs-read-chunk-size 64M \
 --vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u /mnt/gd/plus
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF

systemctl daemon-reload
